import {createRouter,createWebHistory} from 'vue-router'
import Home from '../components/Home.vue'
import Login from '../components/Login.vue'
import Register from '../components/Register.vue'
import UserInput from '../components/UserInput.vue'
const router = createRouter({
	history:createWebHistory(),
	routes:[
        {
            path:'/',
            redirect:"login"
        },
		{
			path:'/userinput',
			component:UserInput,
		},
		{
			path:'/home',
			name:'home',
			component:Home
		},
		{
			path:'/login',
			component:Login
		},{
			path:'/register',
			component:Register
		}
	]
})
export default router